Skip to content

fix(opencode-claimant): re-audit verify_implementation.sh against the split implementation (#13254) - #13348

Merged
dezren39 merged 1 commit into
mainfrom
lane-xs-13254
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-xs-13254

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Re-audits pm-stack/opencode-claimant/verify_implementation.sh against the split claimant implementation, per the prepared scope recorded on #13254 (Lane VQ's audit/hold record, adopted by Lane XS under Drew's 2026-11-23 batch approval of the flag holds).

Verifier changes

  • Every expectation asserted in the file that owns the mechanism now: step functions in claimant.py, selection + timing constants in poll.py (CAP = 36, ACTIVE_WINDOW_MS), per-task launch in launch_one.py (launch()).
  • Stale file expectations updated to their replacements, never deleted: IMPLEMENTATION_SUMMARY.md → SLICE1_IMPLEMENTATION_SUMMARY.md, CHANGES.md → SLICE1_COMPLETION_REPORT.md, test_implementation.py → run_hermetic_tests.py; recovery constants asserted at their exact values.
  • Latent script bugs fixed: the repo-queue dependency check tested "~/fleet-brokers/bin/repo-queue" — a quoted tilde never expands, and the path itself is stale; it now tests $HOME/.local/bin/repo-queue, the alias REPO_QUEUE_CMD in claimant.py actually uses. The hardcoded summary ("12/12 unit tests") is replaced by counted checks (check_passed/check_failed, the PR verify_slice1: update stale expectations to the current claimant mechanisms #13253 shape), so the summary is derived: 43/43.
  • The script cds to its own directory, so it runs from anywhere.

Incidental fix (same pass, disclosed on #13254)
TestCodeSourceFireLog built a real git clone; the hermetic runner forbids subprocess outright, so the canonical suite reported 2 errors on main. The tests now fake git at the subprocess boundary — the asserted contracts (ok read, fail-open, fire entry carries code_source) are unchanged. The runner's separate violation gate still trips on pre-existing caught attempts in other modules; filed as #13344. The verifier's test step asserts the suite's test verdict and documents why.

Verification

  • Verifier end-to-end: 43/43 checks pass, exit 0.
  • Mutation check: CONCURRENCY_CAP 36 → 35 in a scratch copy makes the verifier fail with exit 1 on the right check.
  • Hermetic suite: 226 tests, OK (was: FAILED, errors=2).
{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T14:03:23Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Prove it works
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

… split implementation (#13254)

The in-directory verifier still asserted the pre-split monolith's shape
and failed on its first file check. Every expectation is now asserted
against the mechanism that owns it: step functions in claimant.py,
selection and timing constants in poll.py, per-task launch in
launch_one.py. Stale file expectations updated to their replacements
(SLICE1_IMPLEMENTATION_SUMMARY.md, SLICE1_COMPLETION_REPORT.md,
run_hermetic_tests.py); the repo-queue dependency check now tests the
path the code actually uses ($HOME/.local/bin/repo-queue) with an
expandable $HOME instead of a quoted tilde that could never match.
Checks are counted (check_passed/check_failed, per PR #13253's shape)
so the summary is derived, not hardcoded.

Incidental fix in the same pass: TestCodeSourceFireLog built a real
git clone, which the hermetic runner forbids (subprocess ban), so the
canonical suite reported 2 errors on main. The tests now fake git at
the subprocess boundary; the asserted contracts are unchanged. The
runner's separate violation gate still trips on pre-existing caught
attempts in other modules -- filed as #13344; the verifier's test
step asserts the suite's test verdict and says so.

Verification: verifier runs 43/43 green, exit 0; mutation check
(CONCURRENCY_CAP 36 -> 35 in a scratch copy) fails with exit 1.
Hermetic suite: 226 tests, OK.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T14:04:26.728642Z 4f2c462 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit a629fe3 into main Nov 23, 2026
1 check passed
@dezren39
dezren39 deleted the lane-xs-13254 branch November 23, 2026 14:03
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant